package P1000;

import java.util.Scanner;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-10-12 11:43
 */
public class P1014_Cantor表 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.close();
        int index = 1;
        while (n > index) {
            n -= index;
            ++index;
        }
        if(index %2 == 0) {
            System.out.printf("%d/%d\n",n,index+1-n);
        } else{
            System.out.printf("%d/%d\n",index+1-n,n);
        }
    }
}
